ContentControl\Models\Restriction S

Total Complexity 32
Dependencies 2
Dependents 6
Total lines 409
Lines of code 170
Logical lines of code 65
Comment lines 169
Methods 15
Properties 11

Methods 15

Method Rating Maintainability Complexity Lines of code
__construct()
S
48 5 34
setup_v1_restriction()
S
44 4 45
get_message()
S
59 5 14
get_description()
S
65 3 9
get_setting()
S
67 2 7
check_rules()
S
72 2 6
user_meets_requirements()
S
67 2 7
get_edit_link()
S
70 2 6
to_v1_array()
S
58 1 15
to_array()
S
61 1 12
get_settings()
S
82 1 3
has_js_rules()
S
81 1 3
show_excerpts()
S
80 1 3
uses_redirect_method()
S
79 1 3
uses_replace_method()
S
79 1 3